package JavaDowork.pratice3;

public class Q8s2 {

    public static void main(String[] args) {
        int sum = 0;
        int i = 1;
        do {
            if (i % 2 != 0) {
                sum += i;
            }
            i++;
        } while (i <= 100);
        System.out.println("100 以内所有奇数的和是：" + sum);
    }
}

